package com.meitianhui.convenitenbuy.module.order.model.bean;

import com.meitianhui.convenitenbuy.Constants;

import java.util.HashMap;
import java.util.List;

/**
 * Created by Administrator on 2017/11/13.
 */

public class OrderInfo {

    private HashMap<String, String> doc_url;

    private PageBean page;

    private List<ListBean> list;

    public HashMap<String, String> getDoc_url() {
        return doc_url;
    }

    public void setDoc_url(HashMap<String, String> doc_url) {
        this.doc_url = doc_url;
    }

    public PageBean getPage() {
        return page;
    }

    public void setPage(PageBean page) {
        this.page = page;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }


    public static class PageBean {
        private int page_no;
        private int page_size;
        private int total_count;
        private int total_page;

        public int getPage_no() {
            return page_no;
        }

        public void setPage_no(int page_no) {
            this.page_no = page_no;
        }

        public int getPage_size() {
            return page_size;
        }

        public void setPage_size(int page_size) {
            this.page_size = page_size;
        }

        public int getTotal_count() {
            return total_count;
        }

        public void setTotal_count(int total_count) {
            this.total_count = total_count;
        }

        public int getTotal_page() {
            return total_page;
        }

        public void setTotal_page(int total_page) {
            this.total_page = total_page;
        }
    }

    public static class ListBean {

        private String item_contact_person;
        private String contact_tel;
        private String remark = "";
        private String member_type_key;
        private String item_sale_price;
        private String item_discount_fee;
        private String item_supplier;
        private String item_goods_code;
        private String order_id;
        private String order_no;
        private String desc1;
        private String total_fee;
        private String payment_way_key;
        private String item_total_fee;
        private String item_goods_sku;
        private String item_qty;
        private String order_date;
        private String logistics;
        private String item_num;
        private String discount_fee;
        private String status;
        private String item_warehouse;
        private String item_goods_pic_info;
        private String delivery_address;
        private String contact_person;
        private String sale_fee;
        private String item_contact_tel;
        private String member_id;
        private String goods_id;
        private String item_specification;
        private String item_goods_unit;
        private String item_goods_title;
        private String goods_pic_info_url;
        public String diff_time = "";
        public String product_source = "";
        public String biz_remark;
        private String external_order_no;
        private String order_type;
        private String label_promotion;
        private String loaded_code;
        private String address;
        private String deposit_fee;
        private String received_mode;
        private String goods_json_data;
        private String cash_amount;
        private String gold_amount;
        private String stores_name;
        private String goods_list;
        private String activity_id;
        private String rebate_fee;
        private String type;
        public String item_taobao_link="";
        private String amount;              // 兑换消耗的积分
        private String goods_title;         // 商品名称
        private String member_mobile;       // 用户手机号
        private String path_id;             // ??
        private String qty;
        private String prop_zname;
        private String prop_fname;
        private String attr_zvalue;
        private String attr_fvalue;
        private String sku_id;

        public String getProp_zname() {
            return prop_zname;
        }

        public void setProp_zname(String prop_zname) {
            this.prop_zname = prop_zname;
        }

        public String getProp_fname() {
            return prop_fname;
        }

        public void setProp_fname(String prop_fname) {
            this.prop_fname = prop_fname;
        }

        public String getAttr_zvalue() {
            return attr_zvalue;
        }

        public void setAttr_zvalue(String attr_zvalue) {
            this.attr_zvalue = attr_zvalue;
        }

        public String getAttr_fvalue() {
            return attr_fvalue;
        }

        public void setAttr_fvalue(String attr_fvalue) {
            this.attr_fvalue = attr_fvalue;
        }

        public String getSku_id() {
            return sku_id;
        }

        public void setSku_id(String sku_id) {
            this.sku_id = sku_id;
        }

        public String getQty() {
            return qty;
        }

        public void setQty(String qty) {
            this.qty = qty;
        }

        public String getAmount() {
            return amount;
        }

        public void setAmount(String amount) {
            this.amount = amount;
        }

        public String getGoods_title() {
            return goods_title;
        }

        public void setGoods_title(String goods_title) {
            this.goods_title = goods_title;
        }

        public String getMember_mobile() {
            return member_mobile;
        }

        public void setMember_mobile(String member_mobile) {
            this.member_mobile = member_mobile;
        }

        public String getPath_id() {
            return path_id;
        }

        public void setPath_id(String path_id) {
            this.path_id = path_id;
        }

        public String getItem_taobao_link() {
            return item_taobao_link;
        }

        public void setItem_taobao_link(String item_taobao_link) {
            this.item_taobao_link = item_taobao_link;
        }
        public Long systemTime;

        public Long getSystemTime() {
            return systemTime;
        }

        public void setSystemTime(Long systemTime) {
            this.systemTime = systemTime;
        }

        public String getRebate_fee() {
            return rebate_fee;
        }

        public void setRebate_fee(String rebate_fee) {
            this.rebate_fee = rebate_fee;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getActivity_id() {
            return activity_id;
        }

        public void setActivity_id(String activity_id) {
            this.activity_id = activity_id;
        }

        public String getGoods_list() {
            return goods_list;
        }

        public void setGoods_list(String goods_list) {
            this.goods_list = goods_list;
        }

        public String getStores_name() {
            return stores_name;
        }

        public void setStores_name(String stores_name) {
            this.stores_name = stores_name;
        }

        public String getCash_amount() {
            return cash_amount;
        }

        public void setCash_amount(String cash_amount) {
            this.cash_amount = cash_amount;
        }

        public String getGold_amount() {
            return gold_amount;
        }

        public void setGold_amount(String gold_amount) {
            this.gold_amount = gold_amount;
        }

        private List<ItemListBean> itemList;

        public List<ItemListBean> getItemList() {
            return itemList;
        }

        public void setItemList(List<ItemListBean> itemList) {
            this.itemList = itemList;
        }

        public String getGoods_json_data() {
            return goods_json_data;
        }

        public void setGoods_json_data(String goods_json_data) {
            this.goods_json_data = goods_json_data;
        }

        public String getReceived_mode() {
            return received_mode;
        }

        public void setReceived_mode(String received_mode) {
            this.received_mode = received_mode;
        }

        public String getDeposit_fee() {
            return deposit_fee;
        }

        public void setDeposit_fee(String deposit_fee) {
            this.deposit_fee = deposit_fee;
        }

        //本地字段，用户recyclerview保存状态
        public boolean leftTime = false;

        public String getLabel_promotion() {
            return label_promotion;
        }

        public void setLabel_promotion(String label_promotion) {
            this.label_promotion = label_promotion;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getLoaded_code() {
            return loaded_code;
        }

        public void setLoaded_code(String loaded_code) {
            this.loaded_code = loaded_code;
        }

        public String getOrder_type() {
            return order_type;
        }

        public void setOrder_type(String order_type) {
            this.order_type = order_type;
        }


        public String getBiz_remark() {
            return biz_remark;
        }

        public void setBiz_remark(String biz_remark) {
            this.biz_remark = biz_remark;
        }

        public String getExternal_order_no() {
            return external_order_no;
        }

        public void setExternal_order_no(String external_order_no) {
            this.external_order_no = external_order_no;
        }


        public String getGoods_pic_info_url() {
            return goods_pic_info_url;
        }

        public void setGoods_pic_info_url(String goods_pic_info_url) {
            this.goods_pic_info_url = goods_pic_info_url;
        }

        public String getItem_contact_person() {
            return item_contact_person;
        }

        public void setItem_contact_person(String item_contact_person) {
            this.item_contact_person = item_contact_person;
        }

        public String getContact_tel() {
            return contact_tel;
        }

        public void setContact_tel(String contact_tel) {
            this.contact_tel = contact_tel;
        }

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public String getMember_type_key() {
            return member_type_key;
        }

        public void setMember_type_key(String member_type_key) {
            this.member_type_key = member_type_key;
        }

        public String getItem_sale_price() {
            return item_sale_price;
        }

        public void setItem_sale_price(String item_sale_price) {
            this.item_sale_price = item_sale_price;
        }

        public String getItem_discount_fee() {
            return item_discount_fee;
        }

        public void setItem_discount_fee(String item_discount_fee) {
            this.item_discount_fee = item_discount_fee;
        }

        public String getItem_supplier() {
            return item_supplier;
        }

        public void setItem_supplier(String item_supplier) {
            this.item_supplier = item_supplier;
        }

        public String getItem_goods_code() {
            return item_goods_code;
        }

        public void setItem_goods_code(String item_goods_code) {
            this.item_goods_code = item_goods_code;
        }

        public String getOrder_id() {
            return order_id;
        }

        public void setOrder_id(String order_id) {
            this.order_id = order_id;
        }

        public String getOrder_no() {
            return order_no;
        }

        public void setOrder_no(String order_no) {
            this.order_no = order_no;
        }

        public String getDesc1() {
            return desc1;
        }

        public void setDesc1(String desc1) {
            this.desc1 = desc1;
        }

        public String getTotal_fee() {
            return total_fee;
        }

        public void setTotal_fee(String total_fee) {
            this.total_fee = total_fee;
        }

        public String getPayment_way_key() {
            return payment_way_key;
        }

        public void setPayment_way_key(String payment_way_key) {
            this.payment_way_key = payment_way_key;
        }

        public String getItem_total_fee() {
            return item_total_fee;
        }

        public void setItem_total_fee(String item_total_fee) {
            this.item_total_fee = item_total_fee;
        }

        public String getItem_goods_sku() {
            return item_goods_sku;
        }

        public void setItem_goods_sku(String item_goods_sku) {
            this.item_goods_sku = item_goods_sku;
        }

        public String getItem_qty() {
            return item_qty;
        }

        public void setItem_qty(String item_qty) {
            this.item_qty = item_qty;
        }

        public String getOrder_date() {
            return order_date;
        }

        public void setOrder_date(String order_date) {
            this.order_date = order_date;
        }

        public String getLogistics() {
            return logistics;
        }

        public void setLogistics(String logistics) {
            this.logistics = logistics;
        }

        public String getItem_num() {
            return item_num;
        }

        public void setItem_num(String item_num) {
            this.item_num = item_num;
        }

        public String getDiscount_fee() {
            return discount_fee;
        }

        public void setDiscount_fee(String discount_fee) {
            this.discount_fee = discount_fee;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getItem_warehouse() {
            return item_warehouse;
        }

        public void setItem_warehouse(String item_warehouse) {
            this.item_warehouse = item_warehouse;
        }

        public String getItem_goods_pic_info() {
            return item_goods_pic_info;
        }

        public void setItem_goods_pic_info(String item_goods_pic_info) {
            this.item_goods_pic_info = item_goods_pic_info;
        }

        public String getDelivery_address() {
            return delivery_address;
        }

        public void setDelivery_address(String delivery_address) {
            this.delivery_address = delivery_address;
        }

        public String getContact_person() {
            return contact_person;
        }

        public void setContact_person(String contact_person) {
            this.contact_person = contact_person;
        }

        public String getSale_fee() {
            return sale_fee;
        }

        public void setSale_fee(String sale_fee) {
            this.sale_fee = sale_fee;
        }

        public String getItem_contact_tel() {
            return item_contact_tel;
        }

        public void setItem_contact_tel(String item_contact_tel) {
            this.item_contact_tel = item_contact_tel;
        }

        public String getMember_id() {
            return member_id;
        }

        public void setMember_id(String member_id) {
            this.member_id = member_id;
        }

        public String getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(String goods_id) {
            this.goods_id = goods_id;
        }

        public String getItem_specification() {
            return item_specification;
        }

        public void setItem_specification(String item_specification) {
            this.item_specification = item_specification;
        }

        public String getItem_goods_unit() {
            return item_goods_unit;
        }

        public void setItem_goods_unit(String item_goods_unit) {
            this.item_goods_unit = item_goods_unit;
        }

        public String getItem_goods_title() {
            return item_goods_title;
        }

        public void setItem_goods_title(String item_goods_title) {
            this.item_goods_title = item_goods_title;
        }

        public  String getPayType(){
            if(getPayment_way_key().equals(Constants.ALIPAY_APY)){
                return "支付宝支付";
            }else if(getPayment_way_key().equals(Constants.WECHAT_APY)){
                return "微信支付";
            }else if(getPayment_way_key().equals(Constants.PAYMENT_WAY_05)){
                return "零钱";
            }else if(getPayment_way_key().equals(Constants.PAYMENT_WAY_06)){
                return "礼券兑换";
            }else if(getPayment_way_key().equals(Constants.MIANDANQUAN_APY)){
                return "免单券";
            }
            return "其他";
        }
        public String getOrderStatus() {
            String orderStatus = "";
            if (Constants.PC__ORDER_PAYED.equals(getStatus())) {
                orderStatus = "已支付";
            } else if (Constants.PC_ORDER_DELIVERED.equals(status)) {
                orderStatus =  "已收货";
            } else if (Constants.PC__ORDER_RECEIVED.equals(status)) {
                orderStatus =  "已取消";
            } else if (Constants.PC__ORDER_CANCELLED.equals(status)) {
                orderStatus =  "已返款";
            } else {
                orderStatus =  "已发货";
            }
            return orderStatus;
        }

        public String orderStatus() {
            if ("paid".equals(getStatus())) {
                return "已支付";
            } else if ("received".equals(status)) {
                return "已收货";
            } else if ("cancelled".equals(status)) {
                return "已取消";
            } else if ("refunded".equals(status)) {
                return "已返款";
            } else if ("delivered".equals(status)) {
                return "已发货";
            }
            return "";
        }

        public String getReceivedMode() {
            String mode = "送货上门";

            if ("pick_up".equals(getReceived_mode())) {
                mode = "门店自提";
            } else {
                mode = "送货上门";
            }
            return mode;
        }





        public static class ItemListBean {
            private String item_cash_paid;
            private String item_discount_price;
            private String item_gold_paid;
            private String item_goods_pic_info;
            private String item_goods_title;
            private String item_retail_price;

            public String getItem_cash_paid() {
                return item_cash_paid;
            }

            public void setItem_cash_paid(String item_cash_paid) {
                this.item_cash_paid = item_cash_paid;
            }

            public String getItem_discount_price() {
                return item_discount_price;
            }

            public void setItem_discount_price(String item_discount_price) {
                this.item_discount_price = item_discount_price;
            }

            public String getItem_gold_paid() {
                return item_gold_paid;
            }

            public void setItem_gold_paid(String item_gold_paid) {
                this.item_gold_paid = item_gold_paid;
            }

            public String getItem_goods_pic_info() {
                return item_goods_pic_info;
            }

            public void setItem_goods_pic_info(String item_goods_pic_info) {
                this.item_goods_pic_info = item_goods_pic_info;
            }

            public String getIitem_goods_title() {
                return item_goods_title;
            }

            public void setIitem_goods_title(String iitem_goods_title) {
                this.item_goods_title = iitem_goods_title;
            }

            public String getItem_retail_price() {
                return item_retail_price;
            }

            public void setItem_retail_price(String item_retail_price) {
                this.item_retail_price = item_retail_price;
            }
        }
    }

}
